export const firChatSizeVw = (size,defaultWidth = 1920) => {
    let clientWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth
    if(!clientWidth) return size / 2
    let scale = clientWidth / defaultWidth
    return Number(((size /2)* scale).toFixed(3));
}

export const firChatSizeVh = (size,defaultHeight = 1080) => {
    let clientHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight
    if(!defaultHeight) return size / 2
    let scale = clientHeight / defaultHeight
    return Number(((size /2)* scale).toFixed(3));
}
